package org.brisling.sysman.service.base;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.base.service.BaseListByDeptService;
import org.brisling.common.ConstSysParam;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * 
 * 根据部门信息进行数据过滤的业务类方法，需要按照部门信息过滤实体数据的业务必须继承该基类
 * @author : jackson wang
 * @Date   : 2015年6月8日 下午9:47:33
 * @version: 1.0
 * @param <T> 泛型需定义的业务类实体
 */
public class BaseSysmanListByDeptService<T extends BaseDomainInf> extends BaseListByDeptService<T>{

	@PersistenceContext(unitName=ConstSysParam.SUBSYSTEM_SYSMAN)
	@Autowired
	protected void setEntityManager(EntityManager entityManager){
		this.entityManager = entityManager;
		this.subSystem = ConstSysParam.SUBSYSTEM_SYSMAN;
	}
}
